﻿@model TJBHJJ.Models.News
@{
    ViewBag.Title = "编辑新闻";
    //Layout = "~/Views/Manager/_ViewStart.cshtml";
}
@*<h2>
    NewEdit</h2>*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>News</legend>
@*        @Html.HiddenFor(model => model.Id)
*@
        <div class="editor-field">
            标题：
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="editor-field">
            内容：
            @Html.TextAreaFor(model => model.Content)
            @Html.ValidationMessageFor(model => model.Content)
        </div>
        <div class="editor-field">
            作者：
            @Html.EditorFor(model => model.Author)
            @Html.ValidationMessageFor(model => model.Author)
        </div>
        <div class="editor-field">
            是否发布：
            @Html.EditorFor(model => model.IsDisplay)
            @Html.ValidationMessageFor(model => model.IsDisplay)
        </div>
        <p>
            <input type="submit" value="修改" />
        </p>
    </fieldset>
    @Html.ActionLink("返回列表", "NewList", new { page = (int)ViewData["pageIndex"] })
}
